package com.aspose.cells.b.a;

public class zj {
   // $FF: synthetic field
   static final boolean a = !zj.class.desiredAssertionStatus();

   public static long a(String var0, int var1, int var2, int[] var3) {
      com.aspose.cells.a.e.zg.a(var0, "s");
      int var4 = var3[0];
      int var5;
      if (var2 == 8192) {
         var5 = a(var0, var1, var4);
      } else {
         var5 = var0.length();
      }

      var0 = var0.substring(var4, var5);
      var3[0] = var5;
      return Long.parseLong(var0, var1);
   }

   private static int a(String var0, int var1, int var2) {
      int var3 = var2;
      if (var0.charAt(0) == '-') {
         var3 = var2 + 1;
      }

      while(var3 < var0.length() && Character.digit(var0.charAt(var3), var1) != -1) {
         ++var3;
      }

      return var3;
   }
}
